<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>指令</title>
</head>

<body>
    <style>
        .tese {
            color: red;
        }
    </style>
    <div id="demo">
        <span :class='[{tese:addid},"errorClass"]' class="vvvv">111111</span>
    </div>
</body>
<script src="./vue.js"></script>
<script>
    let data = {
        html: "<div>11111</div>",
        addid: true,
        errorClass: 'errorClass'
    }
    var vm = new Vue({
        el: "#demo",
        data: data,

    })

</script>

</html>